var wmsStyle_tiles = [
    "http://webst01.is.autonavi.com/appmaptile?style=7&x={x}&y={y}&z={z}",
    "http://webst02.is.autonavi.com/appmaptile?style=7&x={x}&y={y}&z={z}",
    "http://webst03.is.autonavi.com/appmaptile?style=7&x={x}&y={y}&z={z}",
    "http://webst04.is.autonavi.com/appmaptile?style=7&x={x}&y={y}&z={z}"
];

var wmsStyle_dack ={
    "version": 8,
    "sources": {
        "gaode_img": {
            "type": "raster",
            "tiles": wmsStyle_tiles,
            "tileSize": 256
        },
    },
    "layers": [
        {
            "id": "background",
            "type": "background",
            "paint": {
                "background-color": "#010f34"
            },
            "interactive": true
        },
        {
            "id": "gaode_img",
            "type": "raster",
            "source": "gaode_img",
            "paint": {
                "opacity": 0.5,
                "raster-opacity": 0.5,
                "raster-fade-duration": 100
            }
        }
    ]
};
var wmsStyle = {
    "version": 8,
    "sources": {
        "gaode_img": {
            "type": "raster",
            "tiles": wmsStyle_tiles,
            "tileSize": 256
        },
        "sz": {
            "type": "grid",
            "tiles": [
                "http://172.16.12.39:8090/iserver/services/map-guiyang/wms111/devMap_Grid?"
                // "http://172.16.12.39:8083/geoserver/guiyang/wms?"
            ],
            "tileSize": 256,
            "serverType":"iserver"
            // "serverType":"geoserver"
        },
    },
    "layers": [
        {
            "id": "background",
            "type": "background",
            "paint": {
                "background-color": "#dddddd"
            },
            "interactive": true
        },
        {
            "id": "gaode_img",
            "type": "raster",
            "source": "gaode_img",
            "paint": {
                "opacity": 0.5,
                "raster-opacity": 0.5,
                "raster-fade-duration": 100
            }
        }, {
            "id": "devMap_Grid",
            //  "id": "guiyang_tile",
            "type": "grid",
            "source": "sz",
        }
    ]
}